<script type="text/javascript">
$(document).ready(function(){
		$('#salelog_demo').find('.demo').ajaxContent({
			event:'click', 
			loaderType:"img",
			loadingMsg:"/old/shop/templates/new20160622/images/transparent.gif",
			target:'#salelog_demo'
		});

});
</script>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mt10">
  <thead>
    <tr>      <th class="w200">买家</th>
      <th class="w100">购买价</th>
      <th class="">购买数量</th>
      <th class="w200">购买时间</th>
    </tr>
  </thead>
  <?php if(!empty($sales) && is_array($sales)){?>
  <tbody>
    <?php foreach($sales as $key=>$sale){?>
    <tr>
      <td><a href="#"><?php echo $sale['buyer_name'];?></a></td>
      <td><em class="price">&yen;<?php echo $sale['goods_price'];?></em> <i style="color:red;"><?php echo $sorder_type[$sale['goods_type']];?></i></td>
      <td><?php echo $sale['goods_num'];?></td>
      <td><time><?php echo date('Y-m-d H:i:s', $sale['add_time']);?></time></td>
    </tr>
    <?php }?>
  </tbody>
  <tfoot>
    <tr>
      <td colspan="10" class="tr" ><div class="pagination"> <?php echo $show_page;?> </div></td>
    </tr>
  </tfoot>
  <?php }else{?>
  <tbody>
    <tr>
      <td colspan="10" class="ncs-norecord">暂无符合条件的数据记录</td>
    </tr>
  </tbody>
  <?php }?>
</table>
